﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Objects.Tags
{
    /// <summary>
    /// Имена классов
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public static class XNamespaces<Ttype>
    {
        public static XNamespace Namespace
        {
            get
            {
                return Tags<Type, XNamespace>.Get(typeof(Ttype)); ;
            }
            set
            {
                Tags<Type, XNamespace>.AddOrSet(typeof(Ttype), value);
            }
        }
    }

    public class XNS : Tags<Type, XNamespace>
    {
        //public static readonly XNamespace TBC = XNamespace.Get("tbc:1.0.0");
        public static void Init()
        {
            DefaultTags<Type, XNamespace>.GetDefaultFunc += (type) => XNamespace.None;
        }
    }

    public class Envelope
    { }
}
